package com.jxb.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "MyConsumerGroup2",topic = "xiaoxiguiji-c")
public class GuiJiConConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("Received 消费者 TestTopic 消息轨迹 : "+ s);
    }
}
